<?php

namespace App\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Support\Facades\Log;
use App\Models\News;
class SendReminderNew implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    protected $data;

    /**
     * Create a new job instance.
     * SendReminderNew constructor.
     * @param News $news
     */
    public function __construct(News $news)
    {
        $this->data = $news;
//        print_r("初始化队列++++</br>");
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        print_r("执行队列数据++++</br>");
    }
    /**
     * The job failed to process.
     *
     * @param  Exception  $exception
     * @return void
     */
    public function failed(Exception $exception)
    {

        print_r("执行失败队列数据++++</br>");
        // Send user notification of failure, etc...
    }
}
